using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    [Table("FimEmployeeTax"), DataContract]
    public class EmployeeTax
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EmpTaxId", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public int EmpTaxId { get; set; }

        [ForeignKey("Employee")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public int EmpId { get; set; }

        [ForeignKey("FundType")]
        [DataMember, Display(Name = "FundTypeId", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<int> FundTypeId { get; set; }

        [DataMember, Display(Name = "FundPlusPer", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<double> FundPlusPer { get; set; }

        [DataMember, Display(Name = "InsAmount", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<double> InsAmount { get; set; }

        [DataMember, Display(Name = "RmfAmount", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<double> RmfAmount { get; set; }

        [DataMember, Display(Name = "LtfAmount", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<double> LtfAmount { get; set; }

        [DataMember, Display(Name = "LoanAmount", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<double> LoanAmount { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.EmployeeTaxsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.Employee Employee { get; set; }

		public virtual MasFund FundType { get; set; }

    }
}